<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>AdminLTE 3 | Dashboard 3</title>

  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet"
    href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome Icons -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  <!-- IonIcons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- DataTables -->
  <link rel="stylesheet" href="plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
  <link rel="stylesheet" href="plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/adminlte.min.css">

  <link type="text/css" rel="stylesheet" charset="UTF-8"
    href="https://translate.googleapis.com/translate_static/css/translateelement.css">
  <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
  <script src="https://cdn.staticfile.org/axios/0.18.0/axios.min.js"></script>
  <script src="exceljs/Blob.js"></script>

  <script src="exceljs/FileSaver.js"></script>

  <script src="exceljs/tableExport.js"></script>
</head>
<!--
`body` tag options:

  Apply one or more of the following classes to to the body tag
  to get the desired effect

  * sidebar-collapse
  * sidebar-mini
-->

<body class="hold-transition sidebar-mini">
  <div class="wrapper">


    <div id="all">

      <!-- 出库管理 -->
      <div id="ckgl">
        <!-- Content Header (Page header) -->
        <div class="content-header">
          <div style="margin-left:1%;margin-right: 1%;">
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <a href="#" class="nav-link">
                    <i class="fas fa-paw nav-icon"></i>
                    <p>黄金品类</p>
                  </a>
                </li>
                <li class="nav-item d-none d-sm-inline-block">
                  <a href="#" class="nav-link" onclick="fun8()" @click="find_list()">
                    <i class="fas fa-plus nav-icon"></i>
                    <p>新增出库单</p>
                  </a>
                </li>
                <li class="nav-item d-none d-sm-inline-block">
                  <a data-type="xls" href="javascript:;" id="export_ck" class="nav-link">
                    <i class="fas  fa-random nav-icon"></i>
                    <p>导出</p>
                  </a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-4">

              </ul>

            </nav>
            <div class="card">
              <!-- /.card-header -->
              <div class="card-body">
                <div id="example1_wrapper" class="dataTables_wrapper dt-bootstrap4">
                  <div class="row">
                    <div class="col-sm-12">
                      <table id="example2" class="table table-bordered table-striped dataTable dtr-inline" role="grid"
                        aria-describedby="example1_info">
                        <thead class="text-center">
                          <tr role="row">
                            <th class="sorting_asc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">操作
                            </th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Browser: activate to sort column ascending">单号</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">客户</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Engine version: activate to sort column ascending">类型</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="CSS grade: activate to sort column ascending">区域</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">状态</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">成色</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">重量</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">数量</th>
                          </tr>
                        </thead>
                        <tbody class="text-center">
                          <tr role="row" class="odd" style="display: none;">
                            <td class="" tabindex="0">Gecko</td>
                            <td style="">Epiphany 2.20</td>
                            <td style="">Gnome</td>
                            <td style="">Epiphany 2.20</td>
                            <td style="">Gnome</td>
                            <td style="">Epiphany 2.20</td>
                            <td style="">Gnome</td>
                            <td style="">Gnome</td>
                            <td style="">1.8</td>

                          </tr>

                          <tr v-for="(outbound,index) in outbounds">
                            <td><a href="#" style="color: black;" @click="delete_ck(outbound.oborder)"><i
                                  class="nav-icon fas  fa-trash"></i></a></td>
                            <td><a href="#" onclick="fun13()"
                                @click="detail_ck(outbound.oborder,index)">{{outbound.oborder}}</a></td>
                            <td>{{outbound.cname}}</td>
                            <td>{{outbound.pname}}</td>
                            <td>{{outbound.fname}}</td>
                            <td>{{outbound.qname}}</td>
                            <td>{{outbound.weight}}</td>
                            <td>{{outbound.num}}</td>
                            <td>{{outbound.status}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /.content-header -->
      </div>
      <!-- 新增出库 -->
      <div id="xzck" style="display: none;">
        <!-- Content Header (Page header) -->
        <div class="content-header">
          <div style="margin-left:1%;margin-right: 1%;">
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <a class="nav-link">
                    <i class="fas fa-plus nav-icon"></i>
                    <p>新增出库单</p>
                  </a>
                </li>

              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-5">

              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-2">
                <button class="btn btn-primary" @click="insert_ck()"><i
                    class="fas  fa-edit nav-icon"></i>&nbsp;提交</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <button class="btn btn-primary" onclick="fun2()"><i class="fas  fa-reply nav-icon"></i>&nbsp;取消</button>
              </ul>

            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light" style="height: 1px;">
              <hr style="height: 0.1px; width: 100%;background-color: lightgray;">
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <a class="nav-link">
                    <i class="fas fa-signal nav-icon"></i>
                    <p>基本信息</p>
                  </a>
                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;单号:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <input type="text" style="height: 40px; width: 200px;" placeholder="CK****" v-model="oborder_ck">
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;品类:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <select class="selectpicker show-tick form-control" style="width: 200px;" v-model="cgname_ck">
                    <option>单品</option>
                    <option>通品</option>

                  </select>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar  ">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>表单类型:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <select class="selectpicker show-tick form-control" style="width: 200px;" v-model="fname_ck">
                    <option>销售入库</option>
                    <option>销售退货</option>
                  </select>
                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar  ">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区域:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <select class="selectpicker show-tick form-control" style="width: 200px;" v-model="aname_ck">
                    <option v-for="area in areas">{{area.aname}}</option>
                  </select>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar  ">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;客户:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <select class="selectpicker show-tick form-control" style="width: 200px;" v-model="cname_ck">
                    <option v-for="cname in cnames">{{cname.cname}}</option>
                  </select>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar  ">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;成色:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <select class="selectpicker show-tick form-control" style="width: 200px;" v-model="qname_ck">
                    <option>千足金9999</option>
                    <option>千足金10000</option>
                  </select>
                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>产品名称:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <select class="selectpicker show-tick form-control" style="width: 200px;" v-model="pname_ck">
                    <option v-for="cgname in cgnames">{{cgname.cgname}}</option>
                  </select>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar  ">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;数量:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <input type="text" style="height: 40px; width: 200px;" v-model="num_ck" placeholder="请输入数量">
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar  ">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重量:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <input type="text" style="height: 40px; width: 200px;" v-model="weight_ck" placeholder="请输入重量">
                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;仓库:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <select class="selectpicker show-tick form-control" style="width: 200px;" v-model="sname_ck">
                    <option v-for="storehouse in storehouses">{{storehouse.shname}}</option>
                  </select>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar  " style="margin-left:1%;">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;制单时间:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <input type="datetime-local" class="measureDate" style="height: 40px; width: 200px;"
                    v-model="mtime_ck">
                </li>
              </ul>


              <ul class="navbar-nav nav-sidebar  ">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;制单人:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <input type="text" style="height: 40px; width: 200px;" v-model="mname_ck" placeholder="请输入你的名字">
                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar">
                <li class="nav-item d-none d-sm-inline-block">
                  <a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;状态:</a>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <li class="nav-item d-none d-sm-inline-block">
                  <select class="selectpicker show-tick form-control" style="width: 200px;" v-model="status_ck">
                    <option>未开始</option>
                    <option>成功</option>
                    <option>失败</option>
                    <option>进行中</option>
                  </select>
                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <a class="nav-link">
                    <i class="fas fa-signal nav-icon"></i>
                    <p>产品信息</p>
                  </a>
                </li>
              </ul>
            </nav>
            <div class="card">
              <!-- /.card-header -->
              <div class="card-body">
                <div id="example1_wrapper" class="dataTables_wrapper dt-bootstrap4">
                  <div class="row">
                    <div class="col-sm-12">
                      <table id="example8" class="table table-bordered table-striped dataTable dtr-inline" role="grid"
                        aria-describedby="example1_info">
                        <thead class="text-center">
                          <tr role="row">
                            <th class="sorting_asc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">操作
                            </th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Browser: activate to sort column ascending">产品信息</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">产品名称</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Engine version: activate to sort column ascending">编码</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="CSS grade: activate to sort column ascending">客户</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">区域</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">成色</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">重量</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">数量</th>
                          </tr>
                        </thead>
                        <tbody class="text-center">
                          <tr role="row" class="odd" style="display: none;">
                            <td class="" tabindex="0">Gecko</td>
                            <td style="">Epiphany 2.20</td>
                            <td style="">Gnome</td>
                            <td style="">Epiphany 2.20</td>
                            <td style="">Gnome</td>
                            <td style="">Epiphany 2.20</td>
                            <td style="">Gnome</td>
                            <td style="">Gnome</td>
                            <td style="">1.8</td>

                          </tr>

                          <tr v-for="(outbound,index) in outbounds">
                            <td><a href="#" style="color: black;"><i class="nav-icon fas  fa-trash"></i></a></td>
                            <td><a href="#" onclick="fun13()"
                                @click="detail_ck(outbound.oborder,index)">{{outbound.oborder}}</a></td>
                            <td>{{outbound.cname}}</td>
                            <td>{{outbound.pname}}</td>
                            <td>{{outbound.fname}}</td>
                            <td>{{outbound.qname}}</td>
                            <td>{{outbound.weight}}</td>
                            <td>{{outbound.num}}</td>
                            <td>{{outbound.status}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /.content-header -->
      </div>
      <!-- 出库详情 -->
      <div id="ckxq" style="display: none;">
        <!-- Content Header (Page header) -->
        <div class="content-header">
          <div style="margin-left:1%;margin-right: 1%;">
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <a class="nav-link">
                    <i class="fas fa-tasks nav-icon"></i>
                    <p>出库单详情</p>
                  </a>
                </li>


              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-5">

              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-3">
                <div class="btn-group">
                  <button type="button" class="btn btn-default" @click="last_one_ck()">上一条</button>
                  <button type="button" class="btn btn-default" @click="next_one_ck()">下一条</button>

                </div>

              </ul>


            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light" style="height: 1px;">
              <hr style="height: 0.1px; width: 100%;background-color: lightgray;">
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <a class="nav-link">
                    <i class="fas fa-signal nav-icon"></i>
                    <p>基本信息</p>
                  </a>
                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4" style="margin-left: 2%;">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>
                    单号:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.oborder}}
                  </p>

                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>品类:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.cgname}}</p>

                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>
                    客户:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.cname}}
                  </p>

                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4" style="margin-left: 2%;">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>表单类型:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.fname}}</p>

                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>区域:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.aname}}</p>

                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>
                    状态:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.status}}
                  </p>

                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4" style="margin-left: 2%;">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>
                    成色:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.qname}}
                  </p>
                  <p></p>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>重量:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.weight}}</p>
                  <p></p>
                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>
                    数量:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.num}}
                  </p>
                  <p></p>
                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4" style="margin-left: 2%;">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>产品名称:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.pname}}</p>

                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>仓库:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.sname}}</p>

                </li>
              </ul>
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>制单时间:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.mtime}}</p>

                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4" style="margin-left: 2%;">
                <li class="nav-item d-none d-sm-inline-block">
                  <p>制单人:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{details_ck.mname}}</p>
                  <p></p>
                </li>
              </ul>
            </nav>
            <nav class=" navbar navbar-expand navbar-white navbar-light">
              <ul class="navbar-nav nav-sidebar col-sm-4">
                <li class="nav-item d-none d-sm-inline-block">
                  <a class="nav-link">
                    <i class="fas fa-signal nav-icon"></i>
                    <p>出库信息</p>
                  </a>
                </li>
              </ul>
            </nav>
            <div class="card">
              <!-- /.card-header -->
              <div class="card-body">
                <div id="example1_wrapper" class="dataTables_wrapper dt-bootstrap4">
                  <div class="row">
                    <div class="col-sm-12">
                      <table id="example14" class="table table-bordered table-striped dataTable dtr-inline" role="grid"
                        aria-describedby="example1_info">
                        <thead class="text-center">
                          <tr role="row">
                            <th class="sorting_asc" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">操作
                            </th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Browser: activate to sort column ascending">单号</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">客户</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Engine version: activate to sort column ascending">类型</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="CSS grade: activate to sort column ascending">区域</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">状态</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">成色</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">重量</th>
                            <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1"
                              aria-label="Platform(s): activate to sort column ascending">数量</th>
                          </tr>
                        </thead>
                        <tbody class="text-center">
                          <tr role="row" class="odd" style="display: none;">
                            <td class="" tabindex="0">Gecko</td>
                            <td style="">Epiphany 2.20</td>
                            <td style="">Gnome</td>
                            <td style="">Epiphany 2.20</td>
                            <td style="">Gnome</td>
                            <td style="">Epiphany 2.20</td>
                            <td style="">Gnome</td>
                            <td style="">Gnome</td>
                            <td style="">1.8</td>

                          </tr>

                          <tr v-for="(outbound,index) in outbounds">
                            <td><a href="#" style="color: black;" @click="delete_ck(outbound.oborder)"><i
                                  class="nav-icon fas  fa-trash"></i></a></td>
                            <td><a href="#" onclick="fun13()"
                                @click="detail_ck(outbound.oborder,index)">{{outbound.oborder}}</a></td>
                            <td>{{outbound.cname}}</td>
                            <td>{{outbound.pname}}</td>
                            <td>{{outbound.fname}}</td>
                            <td>{{outbound.qname}}</td>
                            <td>{{outbound.weight}}</td>
                            <td>{{outbound.num}}</td>
                            <td>{{outbound.status}}</td>
                          </tr>
                        </tbody>
                      </table>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /.content-header -->
      </div>

    </div>


  </div>
  <!-- ./wrapper -->

  <!-- REQUIRED SCRIPTS -->

  <!-- jQuery -->
  <script src="plugins/jquery/jquery.min.js"></script>
  <!-- Bootstrap -->
  <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
  <!-- AdminLTE -->
  <script src="dist/js/adminlte.js"></script>

  <!-- OPTIONAL SCRIPTS -->
  <script src="plugins/chart.js/Chart.min.js"></script>
  <!-- AdminLTE for demo purposes -->
  <script src="dist/js/demo.js"></script>
  <!-- AdminLTE dashboard demo (This is only for demo purposes) -->
  <script src="dist/js/pages/dashboard3.js"></script>
  <!-- DataTables -->
  <script src="plugins/datatables/jquery.dataTables.min.js"></script>
  <script src="plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
  <script src="plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
  <script src="plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
  <!-- <script src="dist/js/adminlte.min.js"></script> -->
  <!-- page script -->
  <script>
    $(function () {
      $("#example1").DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example2').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example3').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example4').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example5').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example6').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example7').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example8').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example9').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example10').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example11').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example12').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example13').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example14').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example15').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example16').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example17').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
      $('#example18').DataTable({
        "responsive": true,
        "autoWidth": false,
      });
    });
  </script>
  <script>

    //显示出库管理
    function fun2() {

      document.getElementById("ckgl").style.display = "";

      document.getElementById("ckxq").style.display = "none";

      alldisplay();
    }

    //显示新增出库
    function fun8() {
      document.getElementById("ckgl").style.display = "none";
      document.getElementById("xzck").style.display = "";
    }

    //显示出库详情
    function fun13() {
      alldisplay();
      document.getElementById("ckgl").style.display = "none";
      document.getElementById("ckxq").style.display = "";

    }



    //隐藏所有新增*
    function alldisplay() {

      document.getElementById("xzck").style.display = "none";

    }
  </script>
  <script>
    var ttindex = 0;
    new Vue({
      el: "#all",

      data: {
        outbounds: [],
        details_ck: [],
        areas: [],
        cnames: [],
        cgnames: [],
        storehouses: [],
        departments: [],
        warehousing: [],

        //入库信息获取
        oborder_ck: "",
        cgname_ck: "",
        cname_ck: "",
        fname_ck: "",
        aname_ck: "",
        status_ck: "",
        qname_ck: "",
        weight_ck: "",
        num_ck: "",
        pname_ck: "",
        sname_ck: "",
        mtime_ck: "",
        mname_ck: "",
      },
      //当页面记载完毕时 
      mounted() {
        axios.get('outbound/find')
          .then(res => {
            console.info(res.data);
            this.outbounds = res.data;
          })
      },
      methods: {
        detail_ck: function (outbound, index) {
          ttindex = index;
          this.outbound = this.outbounds[index];
          axios.get('outbound/detail', {
            params: {
              oborder: outbound
            }
          })
            .then(res => {

              console.info(res.data);
              this.details_ck = res.data[0];

            })
        },
        find_list: function () {
          axios.get('area/findArea')
            .then(res => {
              console.info(res.data);
              this.areas = res.data;
            }),
            axios.get('client/findcname')
              .then(res => {
                console.info(res.data);
                this.cnames = res.data;
              }),
            axios.get('category/findcgname')
              .then(res => {
                console.info(res.data);
                this.cgnames = res.data;
              }),
            axios.get('storehouse/find')
              .then(res => {
                console.info(res.data);
                this.storehouses = res.data;
              }),
            axios.get('department/find')
              .then(res => {
                console.info(res.data);
                this.departments = res.data;
              })
        },
        insert_ck: function () {
          axios.get('outbound/insert', {
            params: {
              oborder: this.oborder_ck,
              cgname: this.cgname_ck,
              cname: this.cname_ck,
              fname: this.fname_ck,
              aname: this.aname_ck,
              status: this.status_ck,
              qname: this.qname_ck,
              weight: this.weight_ck,
              num: this.num_ck,
              pname: this.pname_ck,
              sname: this.sname_ck,
              mtime: this.mtime_ck,
              mname: this.mname_ck
            }
          })
            .then(res => {

              console.info(res.data);
              if (res.data == "success") {
                alert("提交成功");
              } else {
                alert("提交失败")
              }

            })
        },
        last_one_ck: function () {
          //alert(ttindex);
          ttindex = ttindex - 1;
          if (ttindex >= 0) {
            this.details_ck = this.outbounds[ttindex];
          } else {
            alert("这是第一条了");
          }
          //console.info(this.detailss);
        },
        next_one_ck: function () {
          ttindex = ttindex + 1;
          if (ttindex <= this.outbounds.length - 1) {
            this.details_ck = this.outbounds[ttindex];
          } else {
            alert("这是最后一条了");
          }

          //console.info(this.detailss);
        },
        delete_ck: function (delete_ck) {
          axios.get('outbound/delete', {
            params: {
              oborder: delete_ck
            }
          })
            .then(res => {
              console.info(res.data);
              if (res.data == "success") {
                alert("删除成功");
                var outbounds = this.outbounds;
                for (var i = 0; i < outbounds.length; i++) {
                  var b = outbounds[i];
                  if (b.oborder == delete_ck) {
                    outbounds.splice(i, 1);
                    //重新赋值
                    this.outbounds = outbounds;
                    break;
                  }
                }
              } else {
                alert("删除失败")
              }

            })
        },


      }

    });

  </script>

  <script>
    var $exportLink = document.getElementById('export_ck');
    $exportLink.addEventListener('click', function (e) {
      e.preventDefault();
      if (e.target.nodeName === "A") {
        tableExport('example2', '出库管理', e.target.getAttribute('data-type'));
      }
    }, false);
  </script>
</body>

</html>